﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="InsertCompetition.aspx.cs" Inherits="Admin_InsertCompetition" %>
 <%@ Register Assembly="jQueryDatePicker" Namespace="Westwind.Web.Controls" TagPrefix="ww" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<div class="competition_box">
 <div class="cleaner_with_height3"></div> 
    <div class="menuTitle">Insert Competition</div>     
     <div class="cleaner_with_height"></div>                   
    
        <h1>Competition Name</h1><asp:TextBox ID="txtCompetitionName"  Width="300px" runat="server"></asp:TextBox> 
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
         ControlToValidate="txtCompetitionName" EnableTheming="True" 
         ErrorMessage="*Required!" ForeColor="Red" 
         ValidationGroup="1"></asp:RequiredFieldValidator><br /><br />

        <h1>Details: </h1><asp:TextBox ID="txtDetails" runat="server" TextMode="MultiLine" Height="80px"  Width="300px"></asp:TextBox> 
    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
         ControlToValidate="txtDetails" EnableTheming="True" 
         ErrorMessage="*Required!" ForeColor="Red" 
         ValidationGroup="1"></asp:RequiredFieldValidator><br /><br />

        <h1>Condition: </h1><asp:TextBox ID="txtCondition" Width="300px" runat="server"></asp:TextBox> 
    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
         ControlToValidate="txtCondition" EnableTheming="True" 
         ErrorMessage="*Required!" ForeColor="Red" 
         ValidationGroup="1"></asp:RequiredFieldValidator><br /><br />
             
        <h1>Start Date: </h1>
        <ww:jQueryDatePicker runat="server"
                id="txtStartdate" DisplayMode="AutoPopup" DateFormat="MM/dd/yyyy"  ></ww:jQueryDatePicker>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
         ControlToValidate="txtStartdate" EnableTheming="True" 
         ErrorMessage="*Required!" ForeColor="Red" 
         ValidationGroup="1"></asp:RequiredFieldValidator>
         <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
               ControlToValidate="txtStartdate" ErrorMessage="*Must Be DateTime!" 
               ValidationExpression="(0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[- /.](19|20)[0-9]{2}" 
               ValidationGroup="1" ForeColor="Red"></asp:RegularExpressionValidator>
         <br /><br />


        <h1>End Date: </h1>
        <ww:jQueryDatePicker runat="server"
                id="txtEndDate" DisplayMode="AutoPopup" DateFormat="MM/dd/yyyy"  ></ww:jQueryDatePicker>
        
    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
         ControlToValidate="txtEndDate" EnableTheming="True" 
         ErrorMessage="*Required!" ForeColor="Red" 
         ValidationGroup="1"></asp:RequiredFieldValidator>
         <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
               ControlToValidate="txtEndDate" ErrorMessage="*Must Be DateTime!" 
               ValidationExpression="(0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[- /.](19|20)[0-9]{2}" 
               ValidationGroup="1" ForeColor="Red"></asp:RegularExpressionValidator>
         <br /><br />

        <h1>Url: </h1><asp:FileUpload ID="fuPainting" runat="server" /> 
    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
         ControlToValidate="fuPainting" EnableTheming="True" 
         ErrorMessage="*Required!" ForeColor="Red" 
         ValidationGroup="1"></asp:RequiredFieldValidator><br /><br />
        <h1>Award: </h1><br /><br />
        <h1>1st </h1> <span><asp:TextBox ID="txtAward_1st" runat="server"></asp:TextBox> 
    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
         ControlToValidate="txtAward_1st" EnableTheming="True" 
         ErrorMessage="*Required!" ForeColor="Red" 
         ValidationGroup="1"></asp:RequiredFieldValidator></span><br /><br />
         <h1>2nd </h1> <span><asp:TextBox ID="txtAward_2nd" runat="server"></asp:TextBox> 
    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
         ControlToValidate="txtAward_2nd" EnableTheming="True" 
         ErrorMessage="*Required!" ForeColor="Red" 
         ValidationGroup="1"></asp:RequiredFieldValidator></span><br /><br />
         <h1>3rd </h1> <span><asp:TextBox ID="txtAward_3rd" runat="server"></asp:TextBox> 
    <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
         ControlToValidate="txtAward_3rd" EnableTheming="True" 
         ErrorMessage="*Required!" ForeColor="Red" 
         ValidationGroup="1"></asp:RequiredFieldValidator></span>
      <br /><br />
    <div class="cleaner"></div>
        <asp:Button ID="btnInsert" runat="server" Text="Insert" 
        onclick="btnInsert_Click" ValidationGroup="1" />
        <asp:Button ID="btnSeset" runat="server" Text="Reset" 
        onclick="btnSeset_Click" />
        <asp:Button ID="btnCancel" runat="server" Text="Cancel" 
        onclick="btnCancel_Click" /><asp:Label ID="lblMessage" runat="server" Text=""></asp:Label>
</div>

<div class="cleaner"></div>

</asp:Content>

